#include "StaticFileManager.h"
#include "staticfilecontroller.h"

StaticFileManager* StaticFileManager::m_StaticFileManager = nullptr;
QMutex StaticFileManager::m_mutex;

StaticFileManager::StaticFileManager(QObject* parent)
{
}


StaticFileManager::~StaticFileManager()
{
	//delete m_StaticFileController;
}

StaticFileManager * StaticFileManager::getInstance()
{
	if (!m_StaticFileManager)
	{
		QMutexLocker locker(&m_mutex);
		m_StaticFileManager = new StaticFileManager();
	}
	return m_StaticFileManager;
}

void StaticFileManager::setStaticFileController(stefanfrings::StaticFileController* pStaticFileController)
{
	m_StaticFileController = pStaticFileController;
}

stefanfrings::StaticFileController * StaticFileManager::getStaticFileController() const
{
	return m_StaticFileController;
}
